package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface DepartmentMapper extends Mapper<Department> {
    //基础的CRUD方法可以通过继承得到

    //查询列表
    List<Department> findPage(DepartmentQuery query);

    List<Department> findParentDepts();

    void deleteBatch(@Param("ids") Long[] ids);
}
